# 写入一行信息到文件 readme2.txt
file = "test_file/readme2.txt"
info = ["白日依山尽\n","黄河入海流\n","欲穷千里目\n","更上一层楼\n"]
with open(file, mode="w",encoding="utf-8") as f:
    f.writelines(info)